<?php
// +----------------------------------------------------------------------
// | OneThink [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: 麦当苗儿 <zuojiazi@vip.qq.com> <http://www.zjzit.cn>
// +----------------------------------------------------------------------

// $echoStr = $_GET["echostr"];

//     echo $echoStr;

// exit;

/**
 * 系统调试设置
 * 项目正式部署后请设置为false
 */ 
 
// $myfile = fopen("text.txt", "w") or die("Unable to open file!");

header("Content-type: text/html; charset=utf-8");
define ( 'APP_DEBUG', true );


// print_r($_SERVER);die;



// if($_GET["p"] != Null || $_GET["paged"]!= Null)

//  {

// header("HTTP/1.1 404 Not Found");  

// header("Status: 404 Not Found");  

// exit;  

//  }



/**
 * 应用目录设置
 * 安全期间，建议安装调试完成后移动到非WEB目录
 */
define ( 'APP_PATH', './Application/' );

/*if(!is_file(APP_PATH . 'User/Conf/config.php')){
	header('Location: ./install.php');
	exit;
}*/

/**
 * 缓存目录设置
 * 此目录必须可写，建议移动到非WEB目录
 */
define ( 'RUNTIME_PATH', './Runtime/' );

/**
 * 引入核心入口
 * ThinkPHP亦可移动到WEB以外的目录
 */

//引入自动加载
require './vendor/autoload.php';

require './ThinkPHP/ThinkPHP.php';